package com.ldj.controller;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {

    @RequestMapping("/index")
    public  ModelAndView test(){
        System.out.println("OK");
        return new ModelAndView("index");
    }

    @RequestMapping(value="/sy")
    public String indexPage(){
        //如果你的spring mvc配置文件中配置了跳转后缀则不需要加.jsp后缀
        //即直接return "demo/pagefile";
        return "index.jsp";
    }
}
